﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace T.FAS.Runtime.Metadata.Entity.Page
{
    /// <summary>
    /// Action调用参数
    /// </summary>
    [DataContract]
    public class PageActionParameter : ICloneable
    {
        /// <summary>
        /// 主键
        /// </summary>
        [DataMember]
        public string ID { get; set; }
        /// <summary>
        /// PageID
        /// </summary>
        public string PageID { get; set; }
        /// <summary>
        /// EventID
        /// </summary>
        public string EventID { get; set; }
        /// <summary>
        /// 参数顺序
        /// </summary>
        public int ParameterOrder { get; set; }
        /// <summary>
        /// 形参名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// 参数值类型
        /// </summary>
        [DataMember]
        public PropertyValueType ValueType { get; set; }
        /// <summary>
        /// 参数类型
        /// </summary>
        [DataMember]
        public string Type { get; set; }
        /// <summary>
        /// 参数值
        /// </summary>
        /// <remarks>JSON字符串: 包含ExprSchema和Expression</remarks>
        [DataMember]
        public string Value { get; set; }
        /// <summary>
        /// 实体元数据ID
        /// </summary>
        [DataMember]
        public string EntityMetadataID { get; set; }
        /// <summary>
        /// 实体元数据类型
        /// </summary>
        [DataMember]
        public string EntityMetadataType { get; set; }

        public object Clone()
        {
            return this.MemberwiseClone();
        }
    }
}
